<?php
if (!defined('SITE_PATH')) exit();
$db_prefix = C('DB_PREFIX');
$sql = array(
    "DROP TABLE IF EXISTS `{$db_prefix}tpl`;",
    "DELETE FROM `{$db_prefix}system_config` WHERE `key` like 'tpl_Admin_%';",
    "DELETE FROM `{$db_prefix}system_data` WHERE `list` = 'tpl_Admin';",

);
foreach ($sql as $v) {
    D('')->execute($v);
}